﻿// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Timer.generated.h"

// 定时器使用

UCLASS()
class XCZ3_API ATimer : public AActor
{
	GENERATED_BODY()


	UPROPERTY(EditAnywhere, meta=(AllowPrivateAccess=true))
	int32 TimeDown;

	FTimerHandle TimerHandle;

	UPROPERTY(VisibleAnywhere)
	class UTextRenderComponent* TextRenderComponent;

	void TimeDownFunc();

	
public:
	ATimer();
	virtual void BeginPlay() override;
	virtual void Tick(float DeltaTime) override;

	UFUNCTION(BlueprintNativeEvent)
	void TimeDownFinish();
};
